//
// TODO: this is work in progress...
//

function edit_block(page_path, content_block_name)
{
	// create the following code

	// <div id="content-block-editor">
	//     <div><!-- editform -->
	//         <textarea></textarea>
	//         <input type="submit" value="Save" />
	//     </div>
	//     <div><!-- loginform -->
	//         <p><label>Username: <input type="text" /></label></p>
	//         <p><label>Password: <input type="password" /></label></p>
	//         <input type="submit" value="OK" />
	//     </div>
	//
	// </div>


	var content_block_editor = document.createElement('div');
	var editform = document.createElement('div');
	var textarea = document.createElement('textarea');
	var submit_edit_form = document.createElement('input');
		submit_edit_form.setAttribute('type', 'submit');
		submit_edit_form.setAttribute('value', 'Save');
	var loginform = document.createElement('div');
}

// Authenticate user at administration centrum
function login(username, password)
{
	// Do XMLHttp Request
	// return true when authenticated
}
